import request from "@/utils/request"
export default {
  // 保存查询参数
  queryParamsCreate(data) {
    return request({
      baseURL: window.APP_GETEWAY.oms,
      url: `/query/params/create`,
      method: "post",
      data,
    })
  },
  // 获取查询参数
  queryParamsIndex(params) {
    return request({
      baseURL: window.APP_GETEWAY.oms,
      url: `/query/params/index`,
      method: "get",
      params,
    })
  },
  // 删除查询参数
  queryParamsDelete(data) {
    return request({
      baseURL: window.APP_GETEWAY.oms,
      url: `/query/params/delete?${data}`,
      method: "post",
    })
  },
}
